<?php

use Doctrine\ORM\EntityRepository;

class UserInfoRepository extends EntityRepository
{
    public function getUsersInfoAsArray()
    {
        $dql = "SELECT u FROM UserInfo u";
        $query = $this->getEntityManager()->createQuery($dql);
        return $query->getArrayResult();
    }
}